package org.shiwen.week9.answer.q3;

public class Test {
    public static void main(String[] args) {
        BMWCar bmwCar = new BMWCar();
        ToyotaCar toyotaCar = new ToyotaCar();
        CarShop carShop = new CarShop();
        carShop.sellCar(bmwCar);
        carShop.sellCar(toyotaCar);
        System.out.println(carShop.getMoney());
    }
}
